package cn.anosi.service.auth.impl;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

import cn.anosi.entity.auth.Permission;
import cn.anosi.page.PageResponseBean;
import cn.anosi.page.Pager;
import cn.anosi.service.auth.PermissionService;
import cn.anosi.service.base.impl.BaseServiceImpl;

@Service
public class PermisssionServiceImpl extends BaseServiceImpl<Permission> implements PermissionService {

	@Override
	public Permission save(Permission entity) {
		return permissionRepository.save(entity);
	}

	@Override
	public int delete (Serializable id) {
		return permissionRepository.deleteById(id);
	}

	@Override
	public Permission getById(Serializable id) {
		return permissionRepository.getById(id);
	}

	public List<Permission> findAll() {
		return permissionRepository.findAll();
	}

	@Override
	public List<Permission> list() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PageResponseBean<Permission> list(Pager pager) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int lock(Serializable id, Integer status) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int batcahDel(List ids) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int batchSave(ArrayList<Permission> list) {
		// TODO Auto-generated method stub
		return 0;
	}
}
